RE: [SQL] indexing a datetime by date - Mailing list pgsql-sql

From Herouth Maoz
Subject RE: [SQL] indexing a datetime by date
Date
Msg-id l0311070ab3266cb423c7@[147.233.148.140]
Whole thread Raw
In response to RE: [SQL] indexing a datetime by date  ("Jackson, DeJuan" <djackson@cpsgroup.com>)
List pgsql-sql
At 06:07 +0200 on 30/03/1999, Jackson, DeJuan wrote:


>
> Part of the problem is that PostgreSQL Assumes that a functions value will
> change each time it is required, therefore automatic table scan and the
> function is called for each row.
> Try using 'now'::date instead of now()::date

How about using the ANSI standard CURRENT_DATE instead of either? It's
already of type date. Or is it considered a function call?

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma




pgsql-sql by date:

Previous
From: Herouth Maoz
Date:
Subject: Re: [GENERAL] Returning an integer from a date
Next
From: Herouth Maoz
Date:
Subject: Re: [GENERAL] sorting by date & time in descending order ??